
package com.microsoft.schemas.office.project.server.webservices.timesheet;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for PreloadType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="PreloadType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="None"/>
 *     &lt;enumeration value="AdminTimes"/>
 *     &lt;enumeration value="Projects"/>
 *     &lt;enumeration value="AdminTimesAndProjects"/>
 *     &lt;enumeration value="Assignments"/>
 *     &lt;enumeration value="AdminTimesAndAssignments"/>
 *     &lt;enumeration value="ProjectsAndAssignments"/>
 *     &lt;enumeration value="All"/>
 *     &lt;enumeration value="Default"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "PreloadType")
@XmlEnum
public enum PreloadType {

    @XmlEnumValue("None")
    NONE("None"),
    @XmlEnumValue("AdminTimes")
    ADMIN_TIMES("AdminTimes"),
    @XmlEnumValue("Projects")
    PROJECTS("Projects"),
    @XmlEnumValue("AdminTimesAndProjects")
    ADMIN_TIMES_AND_PROJECTS("AdminTimesAndProjects"),
    @XmlEnumValue("Assignments")
    ASSIGNMENTS("Assignments"),
    @XmlEnumValue("AdminTimesAndAssignments")
    ADMIN_TIMES_AND_ASSIGNMENTS("AdminTimesAndAssignments"),
    @XmlEnumValue("ProjectsAndAssignments")
    PROJECTS_AND_ASSIGNMENTS("ProjectsAndAssignments"),
    @XmlEnumValue("All")
    ALL("All"),
    @XmlEnumValue("Default")
    DEFAULT("Default");
    private final String value;

    PreloadType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static PreloadType fromValue(String v) {
        for (PreloadType c: PreloadType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
